package exce1.exce05;


import java.util.Random;

public class Exer04 {
    public static void main(String[] args) {
        char[] cha = new char[52];
        int index = 0;
        String code = "";
        for (int i = 65, j = 97; i < 65 + 26; i++, j++) {
            cha[index++] = (char) i;
            cha[index++] = (char) j;
        }
        for (int i = 0; i < 52; i++) {
            System.out.print(cha[i]);
        }
        System.out.println();
        Random r = new Random();
        for (int i = 0; i < 4; i++) {
            int k = r.nextInt(52);
            code += cha[k];
        }
        System.out.println(code);


    }
}
